<?php 
if(!Utils::isLoggedIn()){
	die('You are not allowed to access this page.');	
}

?>
<div class="row-fluid">
        <div class="span3">
          <div class="well sidebar-nav">
            <ul class="nav nav-list">
              <li class="nav-header">Menü</li>
               <?php
              $selectedSubmenu = isset($_GET['submenu'])?$_GET['submenu']:'teams';
              ?>
				<li <?php ($selectedSubmenu == 'teams' || $selectedSubmenu == 'editteam' || $selectedSubmenu == 'editimage' ? print("class=\"active\""): print(""))?>><a href="index.php?site=admin&submenu=teams">Csapatok</a></li>
				<li <?php ($selectedSubmenu == 'newteam'? print("class=\"active\""): print(""))?>><a href="index.php?site=admin&submenu=newteam">Új csapat</a></li>﻿﻿
            </ul>
          </div><!--/.well -->
        </div><!--/span-->
        <div class="span9">
         <?php 
         if ($selectedSubmenu == 'teams') {
			include 'admin_teams.php';	
		 } else if ($selectedSubmenu == 'newteam' || $selectedSubmenu == 'editteam') {
		 	include 'admin_editteam.php';
		 } else if ($selectedSubmenu == 'editimage') {
		 	include 'admin_editimage.php';
		 }
         ?>
        </div><!--/span-->
      </div><!--/row-->

      <hr>